#ifndef TCPSOCKET_H
#define TCPSOCKET_H
#include <QTcpServer>
#include <QTcpSocket>
#include <QString>
class TcpSocket : public QObject
{
    Q_OBJECT
public:
    TcpSocket(qintptr handle);
    
private:

public:
    QTcpSocket Sock;
    QString Data;
    bool EnableTrans;
private:
    QByteArray RawData;
    void  Decode();

signals:
    void sig_sockdisconnect(TcpSocket *Sock);
    void sig_getdata(TcpSocket *Sock);
};

#endif // TCPSOCKET_H
